#!/bin/bash
function getdir(){
    for element in `ls $1`
    do  
        dir_or_file=$1"/"$element
        if [ -d $dir_or_file ]
        then 
            echo $dir_or_file
            getdir $dir_or_file
        fi
    done
}

root_dir="."
echo "./"
for element in `ls $1`
do  
    dir_or_file=$element
    if [ -d $dir_or_file ]
    then 
        echo $dir_or_file
        getdir $dir_or_file
    fi
done